import request from '@/utils/request'

// 获取注册邮箱验证码
export const getRegistryCode = (email) => {
  return request.post(`/mail/simple/${email}`)
}

// 获取用户忘记密码的邮箱验证码
export const getForgetCode = (email) => {
  return request.post(`/mail/forget-password/${email}`)
}

// 获取用户更新密码的邮箱验证码
export const getUpdateCode = (email) => {
  return request.post(`/mail/update-password/${email}`)
}
